//封装一个专门储存token的方法
//对外暴露一个函数
//存储token
export const setToken = (token) => {
    localStorage.setItem('TOKEN', token)
}
//获取token
export const getToken = () => {
    return localStorage.getItem('TOKEN')
}
//清除储存
export const removeToken = () => {
    localStorage.removeItem("TOKEN")
}